package com.jiawa.train.common.exception;

public enum BusinessExceptionEnum {

    MEMBER_CODE_ERROR("验证码错误！"),

    MEMBER_MOBILE_NOT_EXIST("手机号不存在！"),

    MEMBER_CODE_NULL("请先获取验证码！"),

    BUSINESS_STATION_NAME_UNIQUE_ERROR("车站名称已存在！"),

    BUSINESS_TRAIN_CODE_UNIQUE_ERROR("车次编号已存在！"),

    BUSINESS_TRAIN_CARRIAGE_NAME_UNIQUE_ERROR("车厢已存在！"),


    BUSINESS_TRAIN_STATION_INDEX_UNIQUE_ERROR("同车次站序已存在！"),

    BUSINESS_TRAIN_STATION_NAME_UNIQUE_ERROR("同车次站名已存在！"),

    CONFIRM_ORDER_YDZ_TICKET_COUNT_ERROR("一等座余票数量不足！"),

    CONFIRM_ORDER_EDZ_TICKET_COUNT_ERROR("二等座余票数量不足！"),

    CONFIRM_ORDER_EXCEPTION("服务器忙，请稍候重试"),
    CONFIRM_ORDER_LOCK_FAIL("当前抢票人数较多，没有获取到锁，请稍后重试！"),

    CONFIRM_ORDER_FLOW_EXCEPTION("当前抢票人数较多，限流被限制，请稍后重试！"),
    CONFIRM_ORDER_SK_TOKEN_ERROR("该令牌信息不存在！"),
    CONFIRM_ORDER_SK_TOKEN_YDZ_ERROR("一等座票已卖光！"),
    CONFIRM_ORDER_SK_TOKEN_EDZ_ERROR("二等座票已卖光！"),

    Business_CONFIRM_ORDER_QUERY_ERROR("该订单信息不存在！");

    private final String desc;

    public String getDesc() {
        return desc;
    }


    @Override
    public String toString() {
        return "BusinessException{" +
                "desc='" + desc + '\'' +
                '}';
    }

    BusinessExceptionEnum(String desc) {
        this.desc = desc;
    }
}